package org.springcloud.plugin.framework.nacos.configuration;
import org.springcloud.plugin.framework.adapter.CoreAdapter;
import org.springcloud.plugin.framework.configuration.PluginLoadBalanceConfiguration;
import org.springcloud.plugin.framework.nacos.adapter.NacosAdapter;
import org.springframework.cloud.netflix.ribbon.RibbonClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * author: yanggld
 * date: 2019/12/21 18:24
 * version: 1.0
 * description: NacosAutoConfiguration
 */
@Configuration
@RibbonClients(defaultConfiguration = { PluginLoadBalanceConfiguration.class, NacosLoadBalanceConfiguration.class })
public class NacosAutoConfiguration {

    @Bean
    public CoreAdapter coreAdapter() {
        return new NacosAdapter();
    }
}
